﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace ZXthex.EditorUI
{
    public class EditorText : EditorRectTransform
    {
        public EditorText(string text = "")
        {
            this.text = text;
        }

        public string text { get; set; }

        internal override void SelfGUI()
        {
            if (text == null)
                text = "";

            GUI.Label(guiRect, text);
        }
    }
}